package com.service.business.member.controller.req;

import com.service.dao.constants.ConfigConstants;
import com.service.business.member.validator.PayPasswordExistValidate;
import com.service.business.member.validator.VerifyCodeExistValidate;
import com.service.dao.enums.CoinsEnum;
import lombok.Getter;
import lombok.Setter;

import javax.validation.constraints.NotBlank;
import javax.validation.constraints.NotNull;
import javax.validation.constraints.Positive;
import java.math.BigDecimal;

/**
 * <dl>
 * <dt>back-end</dt>
 * <dd>Description:</dd>
 * <dd>Copyright: Copyright (C) 2015</dd>
 * <dd>Company: </dd>
 * <dd>CreateDate: 2019年09月30日</dd>
 * </dl>
 *
 * @author
 */
@Getter
@Setter
public class TransferAccountReq {

    @PayPasswordExistValidate(ConfigConstants.TRANSFER_ACCOUNT_PASSWORD)
    private String password;

    @NotBlank(message = "args_empty_verify_code")
    private String verifyCode;

    @NotBlank(message = "args_empty_transfer_account")
    private String userAccount;

    @NotNull(message = "args_empty_transfer_num")
    @Positive(message = "args_not_positive_transfer_num")
    private BigDecimal transferNum;

    @NotNull(message = "args_empty_transfer_coin_type")
    private CoinsEnum coin;
}
